package com.jiajia.study.pojo;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 文章表
 * </p>
 *
 * @author zjj
 * @since 2024-04-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("article")
@ApiModel(value="Article对象", description="文章表")
public class Article implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private String id;

    @ApiModelProperty(value = "文章标题")
    private String title;

    @ApiModelProperty(value = "文章内容，长度不超过9999，自行在前后端判断")
    private String content;

    @ApiModelProperty(value = "文章封面图，article_type=1 的时候展示")
    private String articleCover;

    @ApiModelProperty(value = "发布者amin_id")
    private String publishAdminId;

    @ApiModelProperty(value = "文章发布时间（也是预约发布的时间）")
    private LocalDateTime publishTime;

    @ApiModelProperty(value = "发布者，字段冗余，避免多表关联")
    private String publisher;

    @ApiModelProperty(value = "发布者头像，字段冗余")
    private String publisherFace;

    @ApiModelProperty(value = "文章状态：0：关闭，待发布，1：正常，可查阅，2：删除，无法查看")
    private Integer status;

    private LocalDateTime createTime;

    private LocalDateTime updateTime;


}
